package com.colin.commentservice.mapper;

import com.colin.bean.Comment;
import com.colin.bean.Video;

import java.time.LocalDateTime;
import java.util.List;

public interface CommentMapper {
    List<Comment> selectCommentById(Long videoId);

    Boolean deleteComment( Long commentId, String loginId);

    Boolean addComment(Comment comment);

    Boolean addLikeComment(Long videoId, Long commentId, String loginId, LocalDateTime date);

    Video isExistVideo(Long videoId);

    Comment isCommentExist(Long commentId);

    void updateLikeCount(Long commentId);
}
